; The name of the installer
Name "Narcissus User Interface"

; The file to write
OutFile "Narcissus-UI Installer.exe"

; The default installation directory
InstallDir $PROGRAMFILES\Narcissus-UI

; The text to prompt the user to enter a directory
DirText "This will install Narcissus-UI on your computer. Choose a directory"

;--------------------------------

; The stuff to install
Section "" ;No components page, name is not important

; Set output path to the installation directory.
SetOutPath $INSTDIR

; Put file there
File C:\development\projects\Narcissus\trunk\narcissus-ui\target\narcissus-ui.jar
File C:\development\projects\Narcissus\trunk\narcissus-ui\target\classes\log4j-Narcissus-ui.xml

; Tell the compiler to write an uninstaller and to look for a "Uninstall" section
WriteUninstaller $INSTDIR\Uninstall.exe

CreateDirectory "$SMPROGRAMS\RVPONP"
CreateShortCut "$SMPROGRAMS\RVPONP\Narcissus-UI.lnk" "$INSTDIR\narcissus-ui.jar"
CreateShortCut "$SMPROGRAMS\RVPONP\Uninstall.lnk" "$INSTDIR\Uninstall.exe"

SectionEnd ; end the section

; The uninstall section
Section "Uninstall"

Delete $INSTDIR\Uninstall.exe
Delete $INSTDIR\narcissus-ui.jar
Delete $INSTDIR\log4j-Narcissus-ui.xml
Delete $INSTDIR\Narcissus-ui.log
RMDir $INSTDIR

Delete "$SMPROGRAMS\RVPONP\Narcissus-UI.lnk"
Delete "$SMPROGRAMS\RVPONP\Uninstall.lnk"
Delete "$SMPROGRAMS\RVPONP"

SectionEnd ; end the section